package lt.egidijus.aatest.listener;

import lt.egidijus.aatest.utils.Constants;

import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.resources.IResourceDeltaVisitor;
 

class DeltaPrinter implements IResourceDeltaVisitor {
	  
	
      public boolean visit(IResourceDelta delta) {
         IResource res = delta.getResource();
         if (res != null && res.getType() == IResource.PROJECT && delta.getKind() == IResourceDelta.ADDED)
        	 Constants.testProjectName = res.getFullPath().lastSegment().toString();
         return true; 
      }
   }